package com.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 学生实体
 */
@Data
@TableName(value="student")
public class Student {
    @TableId(type = IdType.AUTO)
    private Integer studentId;

    private String studentName;

    private String grade;

    private String major;

    private String clazz;

    private String institute;

    private String tel;

    private String email;

    private String pwd;

    private String cardId;

    private String sex;

    private String role;

    public void setStudentName(String studentName) {
        this.studentName = studentName == null ? null : studentName.trim();
    }


    public void setGrade(String grade) {
        this.grade = grade == null ? null : grade.trim();
    }


    public void setMajor(String major) {
        this.major = major == null ? null : major.trim();
    }


    public void setClazz(String clazz) {
        this.clazz = clazz == null ? null : clazz.trim();
    }


    public void setInstitute(String institute) {
        this.institute = institute == null ? null : institute.trim();
    }


    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }


    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }


    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }


    public void setCardId(String cardId) {
        this.cardId = cardId == null ? null : cardId.trim();
    }


    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }


    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }
}